import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import DashBoard from '@/components/DashBoard'
import Lecturer from '@/components/lecturer/lecturer/index'
import LecturerAudit from '@/components/lecturer/audit/index'
import ShareProfit from '@/components/lecturer/profit/ShareProfit'
import PowerMenu from "../components/power/menu/PowerMenu";
import PowerRoles from "../components/power/rolesPower/PowerRoles";
import PowerUser from "../components/power/userPower/PowerUser";
import head from '@/components/home/head/index.vue'
import zone from '@/components/home/zone/index.vue'
import carousel from '@/components/home/carousel/index.vue'
import bottom from '@/components/home/bottom/index.vue'
import link from '@/components/home/link/index.vue'
import course from '@/components/home/zone/ZoneCourse.vue'
import manage from '@/components/home/bottom/management.vue'
import CoursesOrder from "@/components/commonlyFunction/order/CoursesOrder";

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'DashBoard',
      component: DashBoard,
      children:[
        {
          path: '/hello',
          name: 'HelloWorld',
          component: HelloWorld
        },
        {
          path: '/lecturer',
          name: 'Lecturer',
          component: Lecturer
        },
        {
          path: '/profit',
          name: 'ShareProfit',
          component: ShareProfit
        },
        {
          path: '/audit',
          name: 'LecturerAudit',
          component: LecturerAudit
        },
        {
          path: '/PowerUser',
          name: 'PowerUser',
          component: PowerUser
        },
        {
          path: '/PowerRoles',
          name: 'PowerRoles',
          component: PowerRoles
        },
        {
          path: '/PowerMenu',
          name: 'PowerMenu',
          component: PowerMenu
        },
        {
          path:'/head',
          name:'head',
          component:head
        },
        {
          path:'/zone',
          name:'zone',
          component:zone
        },
        {
          path:'/carousel',
          name:'carousel',
          component:carousel
        },
        {
          path:'/bottom',
          name:'bottom',
          component:bottom
        },
        {
          path:'/link',
          name:'link',
          component:link
        },
        {
          path:'/course',
          name:'course',
          component:course
        },
        {
          path:'/manage',
          name:'manage',
          component:manage
        },
        {
          path:'/CoursesOrder',
          name:'CoursesOrder',
          component:CoursesOrder
        }
      ]
    }
  ]
})
